package ly.flutter.ly_webview_plugin_example;

import androidx.annotation.NonNull;
import io.flutter.app.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.plugins.GeneratedPluginRegistrant;
import ly.flutter.ly_webview_plugin.LyWebviewPlugin;
import android.os.Bundle;

public class MainActivity extends FlutterActivity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    LyWebviewPlugin.registerWith(registrarFor("ly.xinyuan.flutter.WebViewFlutterPlugin"));
  }
//  @Override
//  public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
//    GeneratedPluginRegistrant.registerWith(flutterEngine);
//  }
}
